/*************************************************************************
	> File Name: main.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-23 12:25:11
 ************************************************************************/

#include "Element.h"
#include "Visitor.h"

#include <iostream>
using namespace std;
 
void test0(){
    Visitor * pVisitorA = new ConcreateVisitorA();
    Element * pElement = new ConcreateElementA();

    pElement->Accept(*pVisitorA);

    delete pElement;
    delete pVisitorA;
}

int main(int argc,char *argv[])
{
    test0();
    return 0;
}
